package com.gph.saviorframework.fastdfs.monitor.service;

import com.gph.saviorframework.fastdfs.monitor.model.*;
import com.jcraft.jsch.JSchException;

import java.io.IOException;
import java.util.List;

/**
 * Created by root on 16-6-25.
 */
public interface MonitorService {

    List<Group> listGroupInfo() throws IOException,JSchException;

    List<Group> listGroups() throws IOException;

    List<Storage> listStorage(String groupName) throws IOException;

    List<Storage> listStorageTop(String ipaddr) throws IOException;

    List<Line> listStorageLines(String groupName) throws IOException;

    List<Line> getNetTrafficLines(String ip, String start, String end);

    Line getListStoragesInfo(String ip, String startTime, String endTime)
            throws IOException;

    StorageHour getStorageByIp(String ip) throws IOException;

    List<Group> getAllGroups() throws IOException;

    List<Line> getListFileCountStorage(String ip, String startTime,
                                       String endTime) throws IOException;

    void saveFile(FdfsFile f) throws IOException;

    List<GroupDay> getGroupsByName(String groupName) throws IOException;
}
